﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="pay.aspx.cs" Inherits="order_pay" %>


<%@ Register src="../UserControls/CFooterControl.ascx" tagname="CFooterControl" tagprefix="uc1" %>
<%@ Register src="../UserControls/CHeaderControl.ascx" tagname="CHeaderControl" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <uc2:CHeaderControl ID="CHeaderControl1" runat="server" />
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="order-pay">
    <div id="content">
        <div id="deal-buy" class="box">
            
            <div class="box-content">
                <div class="head">
                    <h2>应付总额：<strong class="total-money"><%=money%></strong> 元</h2>
                </div>
                <div class="sect">
                    <div style="text-align:left;">
                    <%if (service == "credit")
                      { %>
	<input type="hidden" name="service" value="credit" />
	<input type="submit" name="pay" class="formbutton gotopay" value="使用账户余额支付" />

<%}else if(service=="tenpay"){ %>

	<input type="hidden" name="body" value='' />
	<input type="hidden" name="out_trade_no" value='<%=ordermodel.Pay_id %>' />
	<input type="hidden" name="partner" value="" />
	<input type="hidden" name="payment_type" value="1" />
	<input type="hidden" name="return_url" value="" />
	<input type="hidden" name="service" value="tenpay" />
	<input type="hidden" name="subject" value='<%=Pid %>' />
	<input type="hidden" name="total_fee" value='<%=Amt %>' />
	<input type="hidden" name="sign_type" value="MD5" />

	<img src="<%=ImagePath()%>tenpay.jpg" /><br/>

    <input type="submit"  action="tenpay/Reg.aspx" class="formbutton gotopay validator" value="前往财付通付款" />


<%}else if(service=="alipay"){ %>
	<input type="hidden" name="body" value='' />
	<input type="hidden" name="out_trade_no" value='<%=ordermodel.Pay_id %>' />
	<input type="hidden" name="partner" value="" />
	<input type="hidden" name="payment_type" value="1" />
	<input type="hidden" name="return_url" value="" />
	<input type="hidden" name="service" value="alipay" />
	<input type="hidden" name="subject" value='<%=Pid %>' />
	<input type="hidden" name="total_fee" value='<%=Amt %>' />
	<input type="hidden" name="sign_type" value="MD5" />
	<img src="<%=ImagePath()%>alipay.png" /><br /><input type="submit"  action="alipay/pay.aspx" class="formbutton gotopay validator" value="前往支付宝支付" />

<%}else if(service=="yeepay"){ %>
<input type='hidden' name='p2_Order' value='<%=ordermodel.Pay_id %>'>
<input type='hidden' name='p3_Amt'	value='<%=Amt %>'>
<input type='hidden' name='p4_Cur'	value='CNY'>
<input type='hidden' name='p5_Pid'	value='<%=Pid %>'>
<input type='hidden' name='p6_Pcat'	value='<%=pcat %>'>
<input type='hidden' name='p7_Pdesc' value=''>
<input type='hidden' name='p8_Url'	value=''>
<input type='hidden' name='p9_SAF'	value='0'>
<input type='hidden' name='pa_MP'	value=''>
<input type='hidden' name='pd_FrpId'	value='<%=pd_FrpId %>'>
<input type='hidden' name='pr_NeedResponse'	value='1'>

<%if (pd_FrpId == "")
  { %>
	<img src="<%=ImagePath()%>yeepay.gif" /><br /><input type="submit"  action="yeepay/Req.aspx" class="formbutton gotopay validator" value="前往易宝支付" />

<%}
  else
  { %>
    <img src="<%=ImagePath()%><%= pd_FrpId%>.gif" /><br /><input type="submit"  action="yeepay/Req.aspx" class="formbutton gotopay validator" value="前往银行支付" />

<% }%>



<%}else if(service=="bill"){ %>

	<img src="<%=ImagePath()%>99bill.png" /><br /><input type="submit" class="formbutton gotopay" value="前往快钱支付" />


<%}
                      else if (service == "paypal")
                      { %>
 <img src="<%=ImagePath()%>paypal.png" /><br/><input type="submit" class="formbutton gotopay" value="Go to PayPal" style="vertical-align:middle;"/>
               
<%}
                      else if (service == "chinabank")
                      { %>
                       <input type="hidden" name="body" value='' />
	<input type="hidden" name="out_trade_no" value='<%=ordermodel.Pay_id %>' />
	<input type="hidden" name="partner" value="" />
	<input type="hidden" name="payment_type" value="1" />
	<input type="hidden" name="return_url" value="" />
	<input type="hidden" name="service" value="chinabank" />
	<input type="hidden" name="subject" value='<%=Pid %>' />
	<input type="hidden" name="total_fee" value='<%=Amt %>' />
	<input type="hidden" name="sign_type" value="MD5" />
	<img src="<%=ImagePath()%>chinabank.png" /><br/><input type="submit" action="chinabank/Send.aspx" class="formbutton gotopay validator" value="前往网银在线支付"/>

<% }%>

						<div class="back-to-check"><a href="/order/check.aspx?orderid=<%=Request["orderid"] %>">&raquo; 返回选择其他支付方式</a></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->
    <uc1:CFooterControl ID="CFooterControl1" runat="server" />
    </form>
</body>
</html>
